/*
 * @copyright: Huang Ding
 * @Author: ding-cx
 * @Date: 2021-02-24 17:49:09
 * @LastEditors: ding-cx
 * @LastEditTime: 2021-10-21 16:41:54
 * @Description: file content
 */
"use strict";

import AppCache from "../../lib/core/AppCache";

const cacheKeySymbol = Symbol("dinegg#appCacheTempKey");

export default {
	/** app挂载内存缓存对象
	 * -简单的内存缓存操作类map
	 */
	get cache(): AppCache {
		if (!this[cacheKeySymbol]) {
			// @ts-ignore
			this[cacheKeySymbol] = AppCache.init(this.config);
		}
		return this[cacheKeySymbol];
	},
};
